package com.yfyszk.kingbird.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.google.common.collect.Maps;
import com.yfyszk.kingbird.common.entity.Role;
import com.yfyszk.kingbird.mapper.RoleMapper;
import com.yfyszk.kingbird.service.IRoleService;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author kingbird
 * @since 2021-02-28
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Override
    public Role selectRoleById(long id) {
        HashMap<String, Object> map = Maps.newHashMap();
        map.put("id",id);
        Role role= this.baseMapper.selectRoleById(map);
        return role;
    }
}
